import request from '@/utils/request'

// 查询校长列表
export function listMaster(query) {
  return request({
    url: '/horse/master/list',
    method: 'get',
    params: query
  })
}

// 查询校长详细
export function getMaster(id) {
  return request({
    url: '/horse/master/' + id,
    method: 'get'
  })
}

// 新增校长
export function addMaster(data) {
  return request({
    url: '/horse/master',
    method: 'post',
    data: data
  })
}

// 修改校长
export function updateMaster(data) {
  return request({
    url: '/horse/master',
    method: 'put',
    data: data
  })
}

// 删除校长
export function delMaster(id) {
  return request({
    url: '/horse/master/' + id,
    method: 'delete'
  })
}
